<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>前台展示</title>
  <link rel="stylesheet" href="../layuiadmin/layui/css/layui.css" media="all">
</head>

<body>
  <script>
    function toggleFullScreen() {
      if (!document.fullscreenElement) {
        // 进入全屏
        document.documentElement.requestFullscreen();
      } else {
        // 退出全屏
        if (document.exitFullscreen) {
          document.exitFullscreen();
        }
      }
    }
    toggleFullScreen();
  </script>
</body>

</html>